#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>


int main(int argc, char*argv[])
{
	const int r = 128;
	const volatile int i = 10; /* 只读，每次读从内存当中读取(因为是一个不稳定的变量，告诉编译器不做优化)  */
#if 0
	const int a[r] = {0, 1, 2, 3};//variable-sized object may not be initialized
	//const 修饰的a指向的内容
	const int *p = &r;
	int *const p1 = r;
	
	//a[0] = 1024; //error: assignment of read-only location ‘a[0]’
	//a[1] = 1024;
	
	printf("%zd\n", sizeof(a));
#endif
	return 0;
}
